home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-19 | 2.4 KB | 117 lines | [TEXT/KAHL] |
- /* zAMReminderApp.cp -- application methods */
- /* Created 01/01/95 12:01 PM by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, AMReminderApp. The 'z' prefix on this module marks */
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <Global.h>
- #include <CBartender.h>
- #include <CFWDesktop.h>
- #include <CWindow.h>
- #include "CmdCodes.h"
- #include "AMReminderDoc.h"
- #include "zAMReminderApp.h"
-
- extern OSType gSignature;
- extern CBartender *gBartender;
- extern CDesktop *gDesktop;
-
- #define kExtraMasters 4
- #define kRainyDayFund 20480
- #define kCriticalBalance 20480
- #define kToolboxBalance 20480
-
- /*----------*/
- void ZAMReminderApp::IAMReminderApp (void)
- {
- inherited::IApplication (kExtraMasters, kRainyDayFund,
- kCriticalBalance, kToolboxBalance);
-
-
- } /* IAMReminderApp */
-
- /*----------*/
- void ZAMReminderApp::MakeDesktop (void)
- {
- gDesktop = new CFWDesktop;
- ((CFWDesktop *)gDesktop)->IFWDesktop (this);
-
- } /* MakeDesktop */
-
- /*----------*/
- void ZAMReminderApp::SetUpMenus (void)
- {
- MenuHandle macMenu;
-
- inherited::SetUpMenus ();
-
-
-
- } /* SetUpMenus */
-
- /*----------*/
- void ZAMReminderApp::CreateDocument (void)
- {
- CAMReminderDoc *theDocument;
-
- theDocument = NULL;
- TRY {
- theDocument = new CAMReminderDoc;
- theDocument->IAMReminderDoc (this, TRUE);
- theDocument->NewFile ();
- } CATCH {
- ForgetObject (theDocument);
- } ENDTRY;
-
- } /* CreateDocument */
-
- /*----------*/
- void ZAMReminderApp::OpenDocument (SFReply *macSFReply)
- {
- CAMReminderDoc *theDocument;
-
- theDocument = NULL;
- TRY {
- theDocument = new CAMReminderDoc;
- theDocument->IAMReminderDoc (this, TRUE);
- theDocument->OpenFile (macSFReply);
- } CATCH {
- ForgetObject (theDocument);
- } ENDTRY;
-
- } /* OpenDocument */
-
- /*----------*/
- void ZAMReminderApp::DoCommand (long theCommand)
- {
- short itemNr;
-
- switch (theCommand) {
- case cmdAbout:
- itemNr = Alert (1, NULL);
- break;
-
- case cmdDeleteReminder:
- DoDeleteReminder ();
- break;
-
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- //----------
- void ZAMReminderApp::DoDeleteReminder ()
- {
- }
-
- /* zAMReminderApp.cp */
-